{oapdf_gg}
(1) to join the VC control pdf.ocx projects, and generate control type (2) the control placed in the dialog box, or type of call control functions of the members of Create to create the control object (3) attributes or call methods of control open PDF file Since this is not to discuss the content of this article, please refer to "Visual C + + technology insider" in "the use of ActiveX controls," a chapter will not repeat them here. However, the new version of software (5.x/6.x/7.x), this method is no longer applicable: the new control is not a complete sense of the ActiveX control, it lacked the type of control necessary to generate the type library information, unable to control join the VC project. In this case, the need to call function CWnd:: CreateControl to create a control object, and then control access to the IDispatch interface pointer, the adoption of the guidelines visit the properties and methods of control. IDispatch pointer directly call the properties and methods of control is a very tedious work, but the new version of software provides a type library, you can use it to generate a category-driven automated component (derived from COleDispatchDriver). With these, you can greatly simplify the control of the call attributes and methods. Although the control can display PDF documents, but it is only a proxy, the real or the work of Acrobat (Reader) to complete, and therefore software must be installed on both a. |